Displaying Certain Elements on Pages
If your using the No Template option to work directly with the HTML to edit the landing page, you may find the need to show or hide specific elements of the landing page, depending on the page the visitor is currently viewing.
Heads Up! Since all "pages" are served from a single landing page (index.php) file, you'll want to use the content area in Purlem's landing page editor to add your content. This will dynamically pulling in the proper content for each page.
Controlling display of elements based on the page
There may be times where you have hard coded specific design elements into the landing page file that you want to show or hide. For example - if the visitor is on the Thank You page, you may want to hide the box around the form.
To show/hide parts of the landing page, you'll want to do the following:
<?php if($_GET['page'] == 1) { ?> //put content here that you only want to appear on the home page <?php } ?>
<?php if($_GET['page'] == 100) { ?> //put content here that you only want to appear on the thank you page <?php } ?>
You'll notice that the page variable in the URL defines the page the visitor is currently viewing. You can always refer to the URL of the landing page to see which page your currently on.